<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <input type="button" value="点赞" v-on:click="num++">
        <br>
        <br>
        <input type="text" v-model="num">
        <h2>
            {{name}} 非常帅
            <br>
            有{{num}}位女神为他着迷。
        </h2>
    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        var vm=new Vue({
            el:"#app",
            data:{
                name:"周合星",
                num:1
            }
        })
    </script>
</body>
</html>